package com.example.demo.db.controller;

import com.example.demo.db.mapper.TestMapper;
import com.example.demo.db.vo.TestTable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TestController {
    @Autowired
    private TestMapper testMapper;

    @RequestMapping("test")
    public List<TestTable> test(String id)
    {
        return testMapper.selAll(id);
    }
}
